FROM registry.cn-hangzhou.aliyuncs.com/seata520/amazon:amazon-jdk17-alpine3.21


LABEL name="user.jar" vesion="1.0"  author="congzhi"
# 将宿主机当前目录jar copy到容器中
COPY target/user-0.0.1-SNAPSHOT.jar /user.jar

# 配置时区信息
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone

ENTRYPOINT ["java","-jar","/user.jar"]

# 指定端口
EXPOSE 8080 8080